/**
 * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
 * For licensing, see LICENSE.md or http://ckeditor.com/license
 */

CKEDITOR.editorConfig = function( config ) {
    // Define changes to default configuration here.
    // For complete reference see:
    // http://docs.ckeditor.com/#!/api/CKEDITOR.config

    // The toolbar groups arrangement, optimized for two toolbar rows.  
    //config.toolbarGroups 则不可以使用items 去掉Groups可自选items内容
    config.toolbar = [
    //提供复制张贴等   { name: 'clipboard',   groups: [ 'clipboard', 'undo' ] },
    //拼写检查等 { name: 'editing',     groups: [ 'find', 'selection', 'spellchecker' ] },
    //链接    { name: 'links' },
        //{ name: 'insert',   items: ['Image','HorizontalRule','SpecialChar','Smiley']    },
        //插入 包括图片，表格'Table'，水平线，特殊字符  表情'Smiley',分页符,'PageBreak
        //{ name: 'forms' },  
        //{ name: 'tools',    items: ['Maximize'] }, //工具  用于编辑器全屏
    //包括源码等 { name: 'document',    groups: [ 'mode', 'document', 'doctools' ] },
        //{ name: 'others' },
        //'/',
    //加粗 倾斜 删除线等    { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
    //有序 无序 引用等 { name: 'paragraph',   groups: [ 'list', 'indent', 'blocks', 'align', 'bidi' ] },
    //输入文字风格    { name: 'styles' },
    //  { name: 'colors' },
    //去掉？ 关于功能  { name: 'about' }
    ];

    // Remove some buttons provided by the standard plugins, which are
    // not needed in the Standard(s) toolbar.
    config.removeButtons = 'Underline,Subscript,Superscript';

    // Set the most common block elements.
    config.format_tags = 'p;h1;h2;h3;pre';

    // Simplify the dialog windows.
    config.removeDialogTabs = 'image:advanced;link:advanced';
    //工具栏的位置 设置编辑器功能位置 默认top  bottom
    config.toolbarLocation = 'top';

    //当用户键入TAB时，编辑器走过的空格数，(&nbsp;) 当值为0时，焦点将移出编辑框  如果不设置则无任何效果 
    config.tabSpaces = 4;



    //工具栏默认是否展开
    config.toolbarStartupExpanded = true;
    //工具栏是否可以被收缩
    config.toolbarCanCollapse = true;

    //获取基地址
    //写action
    config.filebrowserImageUploadUrl="http://localhost:8080/Campus/upLoadFile.action";
};
